package com.company.cloud.mall.constant;

import com.company.cloud.common.constant.ReturnCodeEnum;

public enum MallErrorEnum implements ReturnCodeEnum{
	
	
	Comment_Null("2600","评论不能为空"),
	Cart_Null("2601","购物车不能为空"),
	Favorite_Null("2602","关注或收藏不能为空"),
	
	Order_Null("2604","订单不存在"),
	Order_Item_Null("2605","订单不存在"),
	Order_Product_Null("2606","订单商品不存在"),
	Order_Addr_Null("2607","发货地址不存在"),
	Order_NotSave_Product_Business("2620","订单非法操作(订单商户必须一致)"),
	Order_NotSave_Product_Type("2621","订单非法操作(订单商品分类必须一致)"),
	Order_Not_Trade_Product("2622","商品不支持在线销售"),
	Order_Op_State("2623","订单非法操作(非法的订单状态)"),
	OrderItem_Null("2624","订单明细不存在"),
	Order_ShippedQuantity("2625","商品发货数量错误"),
	Order_WX_Pay("2626","微信支付错误"),
	Pay_Null("2627","支付流水号不存在"),
	Pay_State_Unsupported("2628","不支持的支付状态"),
	Pay_WX_OpenId_Null("2629","微信OpenId不能为空"),
	Pay_Point_Unsupported("2630","订单不支持积分支付"),
	Order_NotOp_User("2631","订单非法操作(订单用户必须一致)"),
	Order_ExchangeCode_Error("2632","兑换码错误"),
	Order_ExchangeOrder_Error("2633","非法操作(非兑换订单)"),
	Order_Op_Business_Error("2634","非法操作(非本商户订单)"),
	Order_Op_UnderLine_One("2635","非法操作(到店兑换订单只能包含一种商品)"),
	Order_Op_ShippingMethod_Not("2636","非法操作(不支持的配送方式)"),
	Order_Pay_Ing("2637","订单支付中"),
	Order_Pay_Already("2638","订单已支付"),
	Order_ExchangePoint_Already("2639","订单积分已领取"),
	Order_ExchangePoint_Zero("2640","订单领取积分数量要大于0"),
	Order_Complete_Not("2641","订单为完成"),
	Order_User_Error("2642","订单非法用户操作"),
	
	Order_After_Not("2650","订单不能退款"),
	Order_After_Product_Not("2651","商品不支持退款退货"),
	Order_After_Refunds_NotExist("2652","退款单不存在"),
	Order_After_Returns_NotExist("2653","退货退款单不存在"),
	Order_After_Ing("2654","商品售后执行中"),
	Order_After_Fund("2655","商品售后金额异常"),
	Order_After_Num("2656","商品售后数量异常"),
	Order_After_User_Error("2657","商品售后非法用户操作"),
	
//	Order_ExchangePurchase_Num("2055","商品数量错误"),
	Order_State_Op_Not("2056","当前订单状态不能进行操作"),
	
//	Order_ExchangePurchase_Num("2055","商品数量错误"),
	
	Order_Pay_Error("2658","支付错误"),
	
	
	
	;

	private String code;
	private String msg;
	MallErrorEnum(String code,String msg) {
		this.code=code;
		this.msg=msg;
	}
	@Override
	public String getCode() {
		return code;
	}
	@Override
	public String getMsg() {
		return msg;
	}

}
